/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package xcore.model.util;

import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;

import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;

import org.eclipse.emf.ecore.EObject;

import xcore.model.*;

/**
 * <!-- begin-user-doc -->
 * The <b>Adapter Factory</b> for the model.
 * It provides an adapter <code>createXXX</code> method for each class of the model.
 * <!-- end-user-doc -->
 * @see xcore.model.ModelPackage
 * @generated
 */
public class ModelAdapterFactory extends AdapterFactoryImpl {
	/**
	 * The cached model package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected static ModelPackage modelPackage;

	/**
	 * Creates an instance of the adapter factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ModelAdapterFactory() {
		if (modelPackage == null) {
			modelPackage = ModelPackage.eINSTANCE;
		}
	}

	/**
	 * Returns whether this factory is applicable for the type of the object.
	 * <!-- begin-user-doc -->
	 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
	 * <!-- end-user-doc -->
	 * @return whether this factory is applicable for the type of the object.
	 * @generated
	 */
	@Override
	public boolean isFactoryForType(Object object) {
		if (object == modelPackage) {
			return true;
		}
		if (object instanceof EObject) {
			return ((EObject)object).eClass().getEPackage() == modelPackage;
		}
		return false;
	}

	/**
	 * The switch that delegates to the <code>createXXX</code> methods.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ModelSwitch<Adapter> modelSwitch =
		new ModelSwitch<Adapter>() {
			@Override
			public Adapter caseXClass(XClass object) {
				return createXClassAdapter();
			}
			@Override
			public Adapter caseXReference(XReference object) {
				return createXReferenceAdapter();
			}
			@Override
			public Adapter caseXElement(XElement object) {
				return createXElementAdapter();
			}
			@Override
			public Adapter caseXAttribute(XAttribute object) {
				return createXAttributeAdapter();
			}
			@Override
			public Adapter caseXFeature(XFeature object) {
				return createXFeatureAdapter();
			}
			@Override
			public Adapter caseModel(Model object) {
				return createModelAdapter();
			}
			@Override
			public Adapter caseXObject(XObject object) {
				return createXObjectAdapter();
			}
			@Override
			public Adapter caseXRelation(XRelation object) {
				return createXRelationAdapter();
			}
			@Override
			public Adapter caseInstance(Instance object) {
				return createInstanceAdapter();
			}
			@Override
			public Adapter caseXRefFeature(XRefFeature object) {
				return createXRefFeatureAdapter();
			}
			@Override
			public Adapter caseXAttFeature(XAttFeature object) {
				return createXAttFeatureAdapter();
			}
			@Override
			public Adapter caseXVarValues(XVarValues object) {
				return createXVarValuesAdapter();
			}
			@Override
			public Adapter caseXVarAttribute(XVarAttribute object) {
				return createXVarAttributeAdapter();
			}
			@Override
			public Adapter caseXCstAttribute(XCstAttribute object) {
				return createXCstAttributeAdapter();
			}
			@Override
			public Adapter caseXCstValues(XCstValues object) {
				return createXCstValuesAdapter();
			}
			@Override
			public Adapter defaultCase(EObject object) {
				return createEObjectAdapter();
			}
		};

	/**
	 * Creates an adapter for the <code>target</code>.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param target the object to adapt.
	 * @return the adapter for the <code>target</code>.
	 * @generated
	 */
	@Override
	public Adapter createAdapter(Notifier target) {
		return modelSwitch.doSwitch((EObject)target);
	}


	/**
	 * Creates a new adapter for an object of class '{@link xcore.model.XClass <em>XClass</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see xcore.model.XClass
	 * @generated
	 */
	public Adapter createXClassAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link xcore.model.XReference <em>XReference</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see xcore.model.XReference
	 * @generated
	 */
	public Adapter createXReferenceAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link xcore.model.XElement <em>XElement</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see xcore.model.XElement
	 * @generated
	 */
	public Adapter createXElementAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link xcore.model.XAttribute <em>XAttribute</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see xcore.model.XAttribute
	 * @generated
	 */
	public Adapter createXAttributeAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link xcore.model.XFeature <em>XFeature</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see xcore.model.XFeature
	 * @generated
	 */
	public Adapter createXFeatureAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link xcore.model.Model <em>Model</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see xcore.model.Model
	 * @generated
	 */
	public Adapter createModelAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link xcore.model.XObject <em>XObject</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see xcore.model.XObject
	 * @generated
	 */
	public Adapter createXObjectAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link xcore.model.XRelation <em>XRelation</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see xcore.model.XRelation
	 * @generated
	 */
	public Adapter createXRelationAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link xcore.model.Instance <em>Instance</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see xcore.model.Instance
	 * @generated
	 */
	public Adapter createInstanceAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link xcore.model.XRefFeature <em>XRef Feature</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see xcore.model.XRefFeature
	 * @generated
	 */
	public Adapter createXRefFeatureAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link xcore.model.XAttFeature <em>XAtt Feature</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see xcore.model.XAttFeature
	 * @generated
	 */
	public Adapter createXAttFeatureAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link xcore.model.XVarValues <em>XVar Values</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see xcore.model.XVarValues
	 * @generated
	 */
	public Adapter createXVarValuesAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link xcore.model.XVarAttribute <em>XVar Attribute</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see xcore.model.XVarAttribute
	 * @generated
	 */
	public Adapter createXVarAttributeAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link xcore.model.XCstAttribute <em>XCst Attribute</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see xcore.model.XCstAttribute
	 * @generated
	 */
	public Adapter createXCstAttributeAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link xcore.model.XCstValues <em>XCst Values</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see xcore.model.XCstValues
	 * @generated
	 */
	public Adapter createXCstValuesAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for the default case.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @generated
	 */
	public Adapter createEObjectAdapter() {
		return null;
	}

} //ModelAdapterFactory
